import java.io.Serializable;
import java.net.InetAddress;

import edu.ucla.cs.typecast.rmi.TypeCastServer;
import edu.ucla.cs.typecast.rmi.server.TypeCastObjectManager;


public class Ping2Server extends PingServer implements Ping2Service, Serializable {

    public void ping2(InetAddress source, String value) {
        System.out.println(this.getClass().getName() + ": " + source + " ping2 " + value ); 
    }
    
    public static void main(String[] args) { 
        try { 
            TypeCastServer server = new TypeCastServer(); 
            server.export(new Ping2Server()); 
        } catch(Throwable t) { 
            t.printStackTrace(); 
        }
    }

}
